package com.demo.designpattern.singleton;

/**
 * Created by hunter
 *
 * @Description 饿汉式
 */
public class StarvingSingleton {

    private static final StarvingSingleton INSTANCE = new StarvingSingleton();

    private StarvingSingleton() {
        System.out.println("饿汉式单例被初始化拉...");
    }

    public static StarvingSingleton getInstance() {
        return INSTANCE;
    }
}
